home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / gg / ncurses-5.3.lha / ncurses-5.3 / include / Makefile < prev    next >
Makefile  |  2002-10-24  |  6KB  |  154 lines

  1. # $Id: Makefile.in,v 1.35 2001/12/08 18:50:06 tom Exp $
  2. ##############################################################################
  3. # Copyright (c) 1998,2000,2001 Free Software Foundation, Inc.                #
  4. #                                                                            #
  5. # Permission is hereby granted, free of charge, to any person obtaining a    #
  6. # copy of this software and associated documentation files (the "Software"), #
  7. # to deal in the Software without restriction, including without limitation  #
  8. # the rights to use, copy, modify, merge, publish, distribute, distribute    #
  9. # with modifications, sublicense, and/or sell copies of the Software, and to #
  10. # permit persons to whom the Software is furnished to do so, subject to the  #
  11. # following conditions:                                                      #
  12. #                                                                            #
  13. # The above copyright notice and this permission notice shall be included in #
  14. # all copies or substantial portions of the Software.                        #
  15. #                                                                            #
  16. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
  17. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
  18. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
  19. # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
  20. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
  21. # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
  22. # DEALINGS IN THE SOFTWARE.                                                  #
  23. #                                                                            #
  24. # Except as contained in this notice, the name(s) of the above copyright     #
  25. # holders shall not be used in advertising or otherwise to promote the sale, #
  26. # use or other dealings in this Software without prior written               #
  27. # authorization.                                                             #
  28. ##############################################################################
  29. #
  30. # Author: Thomas E. Dickey 1996-2001
  31. #
  32. # Makefile for ncurses source code.
  33. #
  34. # This makes/installs ncurses include-files
  35. #
  36. # The variable 'srcdir' refers to the source-distribution, and can be set with
  37. # the configure script by "--srcdir=DIR".
  38.  
  39. # turn off _all_ suffix rules; we'll generate our own
  40. .SUFFIXES:
  41.  
  42. SHELL        = /bin/sh
  43. THIS        = Makefile
  44.  
  45. DESTDIR        = 
  46. srcdir        = .
  47. prefix        = /gg
  48. exec_prefix    = ${prefix}
  49. includedir    = $(prefix)/include/ncurses
  50.  
  51. INSTALL        = /bin/install -c
  52. INSTALL_DATA    = ${INSTALL} -m 644
  53.  
  54. AWK        = gawk
  55. LN_S        = ln -s
  56.  
  57. VERSION        = 5.3
  58.  
  59. # The "Caps" file specifies the terminfo database format, as well as the list
  60. # of function keys.
  61. TERMINFO_CAPS    = $(srcdir)/Caps
  62.  
  63. # These files are generated by the configure script
  64. CONFIG_SRC = \
  65.     MKterm.h.awk \
  66.     curses.head \
  67.     termcap.h \
  68.     unctrl.h
  69.  
  70. # These files are generated by this makefile
  71. AUTO_SRC = \
  72.     curses.h \
  73.     hashsize.h \
  74.     ncurses_def.h \
  75.     parametrized.h \
  76.     term.h
  77.  
  78. ################################################################################
  79. all \
  80. libs \
  81. depend \
  82. sources \
  83. install ::    $(AUTO_SRC)
  84.  
  85. curses.h : $(TERMINFO_CAPS) \
  86.         curses.head \
  87.         $(srcdir)/curses.tail \
  88.         $(srcdir)/MKkey_defs.sh
  89.     cat curses.head >$@
  90.     AWK=$(AWK) sh $(srcdir)/MKkey_defs.sh $(TERMINFO_CAPS) >>$@
  91.     sh -c 'if test "chtype" = "cchar_t" ; then cat $(srcdir)/curses.wide >>$@ ; fi'
  92.     cat $(srcdir)/curses.tail >>$@
  93.  
  94. term.h: $(TERMINFO_CAPS) MKterm.h.awk
  95.     $(AWK) -f MKterm.h.awk $(TERMINFO_CAPS) > $@
  96.     sh $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@
  97.  
  98. hashsize.h: $(TERMINFO_CAPS) $(srcdir)/MKhashsize.sh
  99.     sh $(srcdir)/MKhashsize.sh $(TERMINFO_CAPS) >$@
  100.  
  101. ncurses_def.h: $(srcdir)/ncurses_defs $(srcdir)/MKncurses_def.sh
  102.     AWK=$(AWK) sh $(srcdir)/MKncurses_def.sh $(srcdir)/ncurses_defs >$@
  103.  
  104. parametrized.h: $(TERMINFO_CAPS) $(srcdir)/MKparametrized.sh
  105.     AWK=$(AWK) sh $(srcdir)/MKparametrized.sh $(TERMINFO_CAPS) >$@
  106.  
  107. tags:
  108.     ctags *.[ch]
  109.  
  110. #TAGS:
  111. #    etags *.[ch]
  112.  
  113. mostlyclean ::
  114.     -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
  115.  
  116. clean :: mostlyclean
  117.     -rm -f $(AUTO_SRC)
  118.  
  119. distclean :: clean
  120.     -rm -f Makefile $(CONFIG_SRC)
  121.  
  122. realclean :: distclean
  123.  
  124. ###############################################################################
  125. # The remainder of this file is automatically generated during configuration
  126. ###############################################################################
  127. $(DESTDIR)$(includedir) :
  128.     sh $(srcdir)/../mkinstalldirs $@
  129.  
  130. install \
  131. install.libs \
  132. install.includes :: $(AUTO_SRC) $(DESTDIR)$(includedir) \
  133.         term.h \
  134.         curses.h \
  135.         unctrl.h \
  136.         termcap.h \
  137.         $(srcdir)/ncurses_dll.h
  138.     @ (cd $(DESTDIR)$(includedir) && rm -f term.h) ; ../headers.sh $(INSTALL_DATA) $(DESTDIR)$(includedir) $(srcdir) term.h
  139.     @ (cd $(DESTDIR)$(includedir) && rm -f curses.h) ; ../headers.sh $(INSTALL_DATA) $(DESTDIR)$(includedir) $(srcdir) curses.h
  140.     @ (cd $(DESTDIR)$(includedir) && rm -f ncurses.h && $(LN_S) curses.h ncurses.h)
  141.     @ (cd $(DESTDIR)$(includedir) && rm -f unctrl.h) ; ../headers.sh $(INSTALL_DATA) $(DESTDIR)$(includedir) $(srcdir) unctrl.h
  142.     @ (cd $(DESTDIR)$(includedir) && rm -f termcap.h) ; ../headers.sh $(INSTALL_DATA) $(DESTDIR)$(includedir) $(srcdir) termcap.h
  143.     @ (cd $(DESTDIR)$(includedir) && rm -f ncurses_dll.h) ; ../headers.sh $(INSTALL_DATA) $(DESTDIR)$(includedir) $(srcdir) $(srcdir)/ncurses_dll.h
  144.  
  145. uninstall \
  146. uninstall.libs \
  147. uninstall.includes ::
  148.     -@ (cd $(DESTDIR)$(includedir) && rm -f term.h)
  149.     -@ (cd $(DESTDIR)$(includedir) && rm -f curses.h)
  150.     -@ (cd $(DESTDIR)$(includedir) && rm -f ncurses.h)
  151.     -@ (cd $(DESTDIR)$(includedir) && rm -f unctrl.h)
  152.     -@ (cd $(DESTDIR)$(includedir) && rm -f termcap.h)
  153.     -@ (cd $(DESTDIR)$(includedir) && rm -f ncurses_dll.h)
  154.